function registeryanzheng(idx){
	window.onbeforeunload = function(event) {
		
	}  
	var gb = new Date();
	var minutes = gb.getMinutes() - dk.getMinutes();
	var seconds = gb.getSeconds() - dk.getSeconds();
	var tltime =  minutes*60 + seconds;
	document.getElementById('tltime').value=tltime;
	var yhm=document.getElementById("yhm");
	var infoname=document.getElementById("r_infoname");
	var mima=document.getElementById("mima");
	var yesmima=document.getElementById("yesmima");
	var infopass=document.getElementById("r_infopass");
	var infonameguo=document.getElementById("infonameguo");
	var infopw=document.getElementById("infopw");
	var zhuceemail=document.getElementById("zhuceemail");
	var youxiang=document.getElementById("youxiang");
	var youyes=document.getElementById("youyes");
	var tongyi=document.getElementById("tongyi");
	var infounit=document.getElementById("infounit");
	var qc=document.getElementById("qc");
	var infoman=document.getElementById("infoman");
	var mans=document.getElementById("mans");
	var infotel=document.getElementById("infotel");
	var tels=document.getElementById("tels");
	
	if(idx !=1){
		var infohttp=document.getElementById("infohttp");
		var departments=document.getElementById("departments");
		var guanggao = document.getElementById("guanggao");
		var keyes=document.getElementById("keyes");
		var key1=document.getElementById("key1");
		var key2=document.getElementById("key2");
		var key3=document.getElementById("key3");
		var key4=document.getElementById("key4");
		var key5=document.getElementById("key5");
		var youares=document.getElementById("youares");
		var youneeds=document.getElementById("youneeds");
		var youways=document.getElementById("youways");
		var youwayother=document.getElementById("youwayother");
	}
	
	
	var isDel=$('input[name="isDel1"]:checked').val();
	var yxemaila=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	
//	var pass = true;
	var error=1;
	
	if(infoname.value=="" || infoname.value=="6-20��ĸ���������"){
		yhm.className="hon_sp_20140520";
		infoname.value="";
		yhm.innerHTML="�û�����Ϊ�գ�";
		if(error==1){
			infoname.focus();
			error=2;
		}
		return false;
	}
	var reg=/[^A-Za-z0-9_]/g;
		if(reg.test(infoname.value)){
			if(error==1){
				infoname.focus();
				error=2;
			}
	//	yhm.className="error_tip";
		yhm.className="hon_sp_20140520";
		yhm.innerHTML="�Բ���,�û����ֻ�ܰ���ĸ�����֣��������������ַ�";
		return false;
		}
	  if (infoname.value.length<6 || infoname.value.length>20){
		  if(error==1){
				infoname.focus();
				error=2;
			}
		//  yhm.className="error_tip";
		  yhm.className="hon_sp_20140520";
		  yhm.innerHTML="�û���Ʊ������6���ַ�����д6-20���ַ������";
		  return false;
	  }
	  
	  if(infonameguo.value==2){
		//  yhm.className="error_tip";
		  yhm.className="hon_sp_20140520";
			yhm.innerHTML="�Բ���,�û�����Ѿ������뻻һ��";
			if(error==1){
				infoname.focus();
				error=2;
			}
			return false;
		}
	if(infopass.value=="" || infopass.value=="6-20��ĸ���������"){
		mima1();
		infopass.value="";
		mima.className="hon_sp_20140520";
		mima.innerHTML="���벻��Ϊ��";
		if(error==1){
			infopass.focus();
			error=2;
		}
		return false;
	}
	if(infopw.value=="" || infopw.value=="6-20��ĸ���������"){
		yesmima1();
		infopw.value="";
		yesmima.className="hon_sp_20140520";
		yesmima.innerHTML="ȷ�����벻��Ϊ��";
		
		if(error==1){
			infopw.focus();
			error=2;
		}
		return false;
	}
	if(infopass.value != infopw.value){
	//	yesmima.className="error_tip";
		yesmima.className="hon_sp_20140520";
		yesmima.innerHTML="�������벻һ��";
		if(error==1){
			infopw.focus();
			error=2;
		}
		return false;
	}
	
	var reg=/[^A-Za-z0-9_]/g;
	if(reg.test(infopass.value)){
	//	mima.className="error_tip";
		yesmima.className="hon_sp_20140520";
		yesmima.innerHTML="�Բ���,����ֻ�ܰ���ĸ�����֣��������������ַ�";
		if(error==1){
			infopass.focus();
			error=2;
		}
		return false;
	}else{
	  	if (infopass.value.length<6 || infopass.value.length>20){
	  		yesmima.className="hon_sp_20140520";
	  		yesmima.innerHTML="����������6���ַ�����д6-20���ַ������";
	  		if(error==1){
	  			infopass.focus();
				error=2;
			}
	  		return false; 
	  	}
	}
	if(infounit.value=="" || infounit.value=="����д��˾���"){
		infounit.value="";
		qc.className="hon_sp_20140520";
		qc.innerHTML="��˾ȫ�Ʋ���Ϊ��";
		
		if(error==1){
			infounit.focus();
			error=2;
		}
		return false;
	}
	
	var yzunit=/([\u4e00-\u9fa5]|[a-z]|[A-Z])+/;
	if(yzunit.test(infounit.value) == false){
		if(error==1){
			infounit.focus();
			error=2;
		}
	//	qc.className="error_tip";
		qc.className="hon_sp_20140520";
		qc.innerHTML="��λȫ�Ʊ������ĸ���ߺ��֣�";
		return false;
	}
	
	if(infoman.value=="" || infoman.value=="��д��ϵ��"){
		infoman.value="";
		mans.className="hon_sp_20140520";
		mans.innerHTML="��ϵ�˲���Ϊ�գ�";
		
		if(error==1){
			infoman.focus();
			error=2;
		}
		return false;
	}
	if(isDel==2){
		if(infotel.value=="" || infotel.value=="�绰��"){
			infotel.value="";
			tels.className="hon_sp_20140520";
			tels.innerHTML="��ϵ�绰����Ϊ��";
			
			if(error==1){
				infotel.focus();
				error=2;
			}
			return false;
		}else{
			var tel =/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^[0-9]{11}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[3,5,8]{1}[0-9]{9}$)/;
			if(!tel.test(infotel.value)){
				if(error==1){
					infotel.focus();
					error=2;
				}
				return false;
			}
		}
		var telqu=/^[0-9]{3,4}$/;
		var telfen=/^(\d{4}|\d{3}|\d{2}|\d{1})$/;
		var infotelqu=document.getElementById("infotel_qu");
		var infotelfen=document.getElementById("infotel_fen");
		if(infotelqu.value !="" && telqu.test(infotelqu.value) == false && infotelqu.value !="���"){
			tels.className="hon_sp_20140520";
			tels.innerHTML="��Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(infotelfen.value !="" && telfen.test(infotelfen.value) == false && infotelfen.value !="�ֻ��"){
			tels.className="hon_sp_20140520";
			tels.innerHTML="�ֻ�Ÿ�ʽ��������ϸ��д��";
			return false;
		}
	}else{
		if(idx == 1){
			var infophone=document.getElementById("infophone");
			var shouji=document.getElementById("shouji");
//			if(infophone.value==""){
//			//	shouji.className="error_tip";
//				shouji.className="xinxi_t_p04_20130923";
//				shouji.innerHTML="�ֻ���벻��Ϊ��";
//				
//				if(error==1){
//					infophone.focus();
//					error=2;
//				}
//			//	pass = false;
//			}else 
			if(infophone.value !="" && infophone.value !="����д����ȷ���ֻ����"){
				var regmp=/^1(\d{9})(\d{1})$/;
				if(!regmp.test(infophone.value)){
					if(error==1){
						infophone.focus();
						error=2;
					}
					shouji.className="hon_sp_20140520";
					return false;
				}
			}else{
				infophone.value="";
			}
		}
	}
	
	if(zhuceemail.value=="" || zhuceemail.value=="����д����ȷ������"){
		zhuceemail.value=""
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="���䲻��Ϊ��";
		if(error==1){
			zhuceemail.focus();
			error=2;
		}
		return false;
	}else{
		if(!yxemaila.test(zhuceemail.value))
		{
		//	youxiang.className="error_tip";
			youxiang.className="hon_sp_20140520";
			youxiang.innerHTML="�����������";
			if(error==1){
				zhuceemail.focus();
				error=2;
			}
			return false;
		}
	}
	if(idx !=1){
		if(trim(key1.value)=="" && trim(key2.value)=="" && trim(key3.value)=="" && trim(key4.value)=="" && trim(key5.value)==""){
		//	keyes.className="error_tip";
			keyes.className="hon_sp_20140520";
			keyes.innerHTML="�ؼ���������дһ��";
			
			if(error==1){
				key1.focus();
				error=2;
			}
			return false;
		}else{
		//	keyes.innerHTML="<img src='../images2010/registok.gif'/*tpa=http://www.okcis.cn/images2010/registok.gif*//>";
			keyes.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
		}
	}
	if(youyes.checked != true )
	{
	//	tongyi.className="error_tip";
		tongyi.className="hon_sp_20140520";
		tongyi.innerHTML="����ͬ���б�ɹ��������û�����Э��";
		return false;
	}
	$("#ptup").remove();
	$("#waitlogin").show();
	$("#formid").submit();
}
//����û���
function yhm_click(){
	var infoname=$("#r_infoname").val().replace(/\s/g,"");
	if(infoname=='6-20��ĸ���������'){
		$("#r_infoname").val('');
	}
	document.getElementById("r_infoname").style.color="#333";
}
function yhm(){
	var yhm=document.getElementById("yhm");
	var infoname=document.getElementById("r_infoname");
	var infonameguo=document.getElementById("infonameguo");
	var reg=/[^A-Za-z0-9_]/g;
	if(infoname.value == ""){
		infoname.value="6-20��ĸ���������";
		yhm.innerHTML="";
		infoname.style.color="#999";
		return false;
	}else{
		if(reg.test(infoname.value)){
			//	yhm.className="error_tip";
				yhm.className="hon_sp_20140520";
				yhm.innerHTML="�Բ���,����д6-20����ĸ������";
				return false;
			}
				
		   if (infoname.value.length<6 || infoname.value.length>20 ){
			//  yhm.className="error_tip";
			  yhm.className="hon_sp_20140520";
			  yhm.innerHTML="�û���Ʊ������6���ַ�����д6-20���ַ������";
			  return false;
		   }
			  if(infoname.value != ""){
				  var infonames=infoname.value;
				  $.post('http://www.okcis.cn/javascripts/saveregister.php?jianyan=jianyan', {'infoname' : infonames}, function(result) {
						if(result == 1){
						//	yhm.className="error_tip";
							yhm.className="hon_sp_20140520";
							yhm.innerHTML="���û����Ѿ�����";
							infonameguo.value=2;
							return false;
						}else{
						//	yhm.className="error_tips";
							yhm.className="xinxi_sp01_20140425";
						//	yhm.innerHTML="<img src='../images2010/registok.gif'/*tpa=http://www.okcis.cn/images2010/registok.gif*//>";
							yhm.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif'/*tpa=http://www.okcis.cn/images2010/img_dlzc_20140424/duigou_im_20140428.gif*/ />";
							infonameguo.value=1;
							infoname.style.color="#333";
						}
					}); 
			  }
	}
	
	  
}
function mima1(){
//	var reg=/[^A-Za-z0-9_]/g;
//	var infopass=document.getElementById("r_infopass");
//	var mima=document.getElementById("mima");
	$("#r_infopass").show();
	$("#r_infopass").focus();
	$("#r_infopass1").hide();
	document.getElementById("r_infopass").style.color="#333";
}
function mima(){
	var reg=/[^A-Za-z0-9_]/g;
	var infopass=document.getElementById("r_infopass");
	var mima=document.getElementById("mima");
		if(reg.test(infopass.value)){
		//	mima.className="error_tip";
			mima.className="hon_sp_20140520";
			mima.innerHTML="�Բ���,����ֻ�ܰ���ĸ�����֣��������������ַ�";
			return false;
		}else{
		  	if (infopass.value.length<6 || infopass.value.length>20){
		  	//	mima.className="error_tip";
		  		mima.className="hon_sp_20140520";
		  		mima.innerHTML="����������6���ַ�����д6-20���ַ������";
		  		return false;  
		  	}else{
		  		infopass.style.color="#333";
		  	//	mima.className="error_tips";
		  		mima.className="xinxi_sp01_20140425";
		  	//	mima.innerHTML="<img src='../images2010/registok.gif'/*tpa=http://www.okcis.cn/images2010/registok.gif*//>"+"��������ĸ���������(6-20)���Ӣ����ĸ��Сд"; 
			  	mima.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />"; 
			  	return true;
		  	}
		}
	  	
}
function yesmima1(){
	$("#infopw").show();
	$("#infopw1").hide();
	$("#infopw").focus();
	document.getElementById("infopw").style.color="#333";
}
function yesmima(){
	var reg=/[^A-Za-z0-9_]/g;
	var infopw=document.getElementById("infopw");
	var yesmima=document.getElementById("yesmima");
	var mima=document.getElementById("mima");
	var aa1=document.getElementById("r_infopass").value;
	var aa2=document.getElementById("infopw").value;
	if(infopw.value==""){
	//	yesmima.className="error_tip";
		yesmima.className="hon_sp_20140520";
		yesmima.innerHTML="�Բ���,ȷ�����벻��Ϊ��";
		return false;
	}else{
		if(reg.test(infopw.value)){
		//	yesmima.className="error_tip";
			yesmima.className="hon_sp_20140520";
			yesmima.innerHTML="�Բ���,����ֻ�ܰ���ĸ�����֣��������������ַ�";
			return false;
		}else{
	  		if(aa1 != aa2){
	  		//	yesmima.className="error_tip";
	  			yesmima.className="hon_sp_20140520";
	  			yesmima.innerHTML="�������벻һ��";
				return false;
			}else if(aa1.length<6 || aa1.length>20){
				mima.className="hon_sp_20140520";
				yesmima.className="hon_sp_20140520";
		  		mima.innerHTML="����������6���ַ�����д6-20���ַ������";
		  		yesmima.innerHTML="����������6���ַ�����д6-20���ַ������";
		  		return false;
			}else{
				mima.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
				yesmima.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";	
			}
		}
	}
}
//�������
function youxiang_click(){
	var shouji=$("#zhuceemail").val().replace(/\s/g,"");
	if(shouji=="����д����ȷ������"){
		$("#zhuceemail").val("");
	}
	document.getElementById("zhuceemail").style.color="#333";
}
function youxiang(){
	var a=/^([A-Z]|[a-z]|[0-9]{1})\w+([-+.]\w+)*@\w+([-.]\w+)*\.(com|cn|net|org|org.cn|com.cn)$/;
	var youxiang=document.getElementById("youxiang");
	if(document.getElementById("zhuceemail").value == ""){
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="���䲻��Ϊ��";
  		return false;
	}else if(!a.test(document.getElementById("zhuceemail").value) && document.getElementById("zhuceemail").value !="")
	{
	//	youxiang.className="error_tip";
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="�����������";
  		return false;
	}else{
		document.getElementById("zhuceemail").style.color="#333";
		youxiang.className="xinxi_sp01_20140425";
		youxiang.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
}
//����ֻ�
function shouji_click(){
	var shouji=$("#infophone").val().replace(/\s/g,"");
	if(shouji=="����д����ȷ���ֻ����"){
		$("#infophone").val("");
	}
	document.getElementById("infophone").style.color="#333";
}
function shouji(){
	var reg=/^1(\d{9})(\d{1})$/;
	var shouji=document.getElementById("shouji");
	if(document.getElementById("infophone").value==""){
		shouji.className="xinxi_sp01_20140425";
		document.getElementById("infophone").value="����д����ȷ���ֻ����";
		document.getElementById("infophone").style.color="#999";
		shouji.innerHTML="";
  		return false;
	}else 
	if(!reg.test(document.getElementById("infophone").value) && document.getElementById("infophone").value !="" && document.getElementById("infophone").value !="����д����ȷ���ֻ����"){
		shouji.className="hon_sp_20140520";
		shouji.innerHTML="�ֻ�����������";
  		return false;	
	}else if(reg.test(document.getElementById("infophone").value) && document.getElementById("infophone").value !=""){
		shouji.className="xinxi_sp01_20140425";
		document.getElementById("infophone").style.color="#333";
		shouji.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
}

function registeryanzhengs(){
	var reg=/[^A-Za-z0-9_]/g;
	var phonerzs=document.getElementById("phone_rz");
	var phonerzm=document.getElementById("phonerzm");
	if(phonerzs.value==""){
		phonerzm.className="error_tip";
		phonerzm.innerHTML="��֤�벻��Ϊ�գ�";
		return false;
	}
	if(reg.test(phonerzs.value)){
		phonerzm.className="error_tip";
		phonerzm.innerHTML="ֻ�ܰ���ĸ�����֣��������������ַ�";
	return false;
	}
	return true;
}
//�����˾
function qcunit_click(){
	var infounit=$("#infounit").val().replace(/\s/g,"");
	if(infounit=='����д��˾���'){
		$("#infounit").val('');
	}
	document.getElementById("infounit").style.color="#333";
}
function qcunit(){
	var infounit=document.getElementById("infounit");
	var qc=document.getElementById("qc");
	if(infounit.value==""){
		qc.className="hon_sp_20140520";
	//	infounit.value="����д��˾���";
		document.getElementById("qc").style.color="#999";
		qc.innerHTML="��˾��Ʋ���Ϊ�գ�";
		return false;
	}else{
		var xx="!<>$^*`~|}{[];,.����";
		var yy=infounit.value;	
	
			for (var i=0;i<xx.length;i++)
			{
				for(var ii=0;ii<yy.length;ii++)
				{
					if(xx.charAt(i)==yy.charAt(ii))
					{
							qc.className="hon_sp_20140520";
							qc.innerHTML="���������ַ�";	     //���������ַ� ������
							return false;
					}
				}
			}
			var yzunit=/([\u4e00-\u9fa5]|[a-z]|[A-Z])+/;
			if(yzunit.test(infounit.value) == false){
				qc.className="hon_sp_20140520";
				qc.innerHTML="��λȫ�Ʊ�������ĸ���ߺ��֣�";
				return false;
			}
			else
			{
				document.getElementById("qc").style.color="#333";
				qc.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
			}
	}
}
//�����ϵ��
function maninfo(){
	
	var infoman=document.getElementById("infoman");
	var mans=document.getElementById("mans");
	if(infoman.value=="" || infoman.value=="��д��ϵ��"){
		mans.className="hon_sp_20140520";
	//	infoman.value="��д��ϵ��";
		infoman.value='';
		mans.innerHTML="��ϵ�˲���Ϊ�գ�";
		return false;
	}else{
		document.getElementById("infoman").style.color="#333";
		mans.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
	return true;
}
function telinfo(){
	// infotel_qu  infotel_fen
	var telqu=/^[0-9]{3,4}$/;
	var telfen=/^(\d{4}|\d{3}|\d{2}|\d{1})$/;
	var tel =/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^[0-9]{10,11}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[3,5,8]{1}[0-9]{9}$)/;
	var infotelqu=document.getElementById("infotel_qu");
	var infotelfen=document.getElementById("infotel_fen");
	
	var infotel=document.getElementById("infotel");
	var tels=document.getElementById("tels");
	if(infotel.value==""){
		tels.className="hon_sp_20140520";
		tels.innerHTML="��ϵ�绰����Ϊ�գ�";
		return false;
	}else{
		if(infotelqu.value !="" && !telqu.test(infotelqu.value)){
			tels.className="hon_sp_20140520";
			tels.innerHTML="��Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(infotelfen.value !="" && !telfen.test(infotelfen.value)){
			tels.className="hon_sp_20140520";
			tels.innerHTML="�ֻ�Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(tel.test(infotel.value) == false){
		//	tels.className="error_tip";
			tels.className="hon_sp_20140520";
			tels.innerHTML="�̶��绰��ʽ��������ϸ��д��";
			return false;
		}else{
	//	tels.innerHTML="<img src='../images2010/registok.gif'/*tpa=http://www.okcis.cn/images2010/registok.gif*//>";
			document.getElementById("infotel_qu").style.color="#333";
			document.getElementById("infotel_fen").style.color="#333";
			document.getElementById("infotel").style.color="#333";
			tels.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
		}
	}
}
function showyouwayother(){
	$("#youwayother" ).toggle();
}
//�жϲ����Ƿ�ѡ��
function bumen(){
	var departments=document.getElementById("departments");
	var department='';
	$("input[name='department[]']").each(function(){
		if (this.checked == true) {
			department = department  + $(this).val() + ',';
		}
	});
	if(department==""){
		departments.className="xinxi_t_p04_20130923";
		departments.innerHTML="������������ѡ��һ��";
	}else{
		departments.innerHTML="<img src='../images2010/css_20130918img/duigou_im_20130821.gif'/>";
	}
}
//�ж���Ҫ�Ƿ�ѡ��
function is_xuyao(){
	var guanggao = document.getElementById("guanggao");
	var xuyao="";
	$("input[name='xuyao']").each(function(){
		if (this.checked == true) {
			xuyao = xuyao  + $(this).val() + ',';
		}
	});
	if(xuyao==""){
		guanggao.className="xinxi_t_p04_20130923";
		guanggao.innerHTML="ͨ�����ƹ���Ĳ�Ʒ����ѡ����Ҫ����Ҫ";
	}else{
		guanggao.innerHTML="<img src='../images2010/css_20130918img/duigou_im_20130821.gif'/>";
	}
}
//�ؼ���
function key(){
	var keyes=document.getElementById("keyes");
	var key1=document.getElementById("key1");
	var key2=document.getElementById("key2");
	var key3=document.getElementById("key3");
	var key4=document.getElementById("key4");
	var key5=document.getElementById("key5");
	if(trim(key1.value)=="" && trim(key2.value)=="" && trim(key3.value)=="" && trim(key4.value)=="" && trim(key5.value)==""){
		keyes.className="hon_sp_20140520";
		keyes.innerHTML="�ؼ���������дһ��";
	}else{
		keyes.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
	
}
//////////////////////////////////////�µ�ע��ҳ��
//����л�
function regist(id){ 
	if(window.attachEvent){
		window.onbeforeunload = function(event){
		}
	}
	for(var i=1;i<3;i++){		
		document.getElementById("regista"+i).className="zcneir_at_20140701";
	}	
	document.getElementById("regista"+id).className="zcneir_ats_20140701";
        if(id == 1){
            reg(1);
        }
        else{
            reg(0);
        }
        
}
//�����˾
function qcunit_click1(){
	var infounit=$("#infounit1").val().replace(/\s/g,"");
	if(infounit=='����д��˾���'){
		$("#infounit1").val('');
	}
	document.getElementById("infounit1").style.color="#333";
}
function qcunit1(){
	var infounit=document.getElementById("infounit1");
	var qc=document.getElementById("qc1");
	if(infounit.value==""){
		qc.className="hon_sp_20140520";
	//	infounit.value="����д��˾���";
		qc.innerHTML="��˾��Ʋ���Ϊ�գ�";
		return false;
	}else{
		var xx="!<>$^*`~|}{[];,.����";
		var yy=infounit.value;	
	
			for (var i=0;i<xx.length;i++)
			{
				for(var ii=0;ii<yy.length;ii++)
				{
					if(xx.charAt(i)==yy.charAt(ii))
					{
							qc.className="hon_sp_20140520";
							qc.innerHTML="���������ַ�";	     //���������ַ� ������
							return false;
					}
				}
			}
			var yzunit=/([\u4e00-\u9fa5]|[a-z]|[A-Z])+/;
			if(yzunit.test(infounit.value) == false){
				qc.className="hon_sp_20140520";
				qc.innerHTML="��λȫ�Ʊ�������ĸ���ߺ��֣�";
				return false;
			}
			else
			{
				document.getElementById("infounit1").style.color="#333";
				qc.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
			}
	}
}
//�����ϵ��
function maninfo1(){
	
	var infoman=document.getElementById("infoman1");
	var mans=document.getElementById("mans1");
	if(infoman.value=="" || infoman.value=="��д��ϵ��"){
		mans.className="hon_sp_20140520";
	//	infoman.value="��д��ϵ��";
		infoman.value='';
		mans.innerHTML="��ϵ�˲���Ϊ�գ�";
		return false;
	}else{
		document.getElementById("infoman1").style.color="#333";
		mans.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
	return true;
}
function maninfo_click1(){
	var man=$("#infoman1").val().replace(/\s/g,"");
	if(man=='��д��ϵ��'){
		$("#infoman1").val('');
	}
	document.getElementById("infoman1").style.color="#333";
}
//����ֻ�
function shouji_click1(){
	var shouji=$("#infophone1").val().replace(/\s/g,"");
	if(shouji=="����д����ȷ���ֻ����"){
		$("#infophone1").val("");
	}
	document.getElementById("infophone1").style.color="#333";
}
function shouji1(){
	var reg=/^1(\d{9})(\d{1})$/;
	var shouji=document.getElementById("shouji1");
	if(document.getElementById("infophone1").value==""){
		shouji.className="xinxi_sp01_20140425";
		document.getElementById("infophone1").style.color="#999";
		document.getElementById("infophone1").value="����д����ȷ���ֻ����";
		
		shouji.innerHTML="";
  		return false;
	}else 
	if(!reg.test(document.getElementById("infophone1").value) && document.getElementById("infophone1").value !="" && document.getElementById("infophone1").value !="����д����ȷ���ֻ����"){
		shouji.className="hon_sp_20140520";
		shouji.innerHTML="�ֻ�����������";
  		return false;	
	}else if(reg.test(document.getElementById("infophone1").value) && document.getElementById("infophone1").value !=""){
		document.getElementById("infophone1").style.color="#333";
		shouji.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
}
//�绰
function telinfo1(){
	// infotel_qu  infotel_fen
	var telqu=/^[0-9]{3,4}$/;
	var telfen=/^(\d{4}|\d{3}|\d{2}|\d{1})$/;
	var tel =/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^[0-9]{10,11}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[3,5,8]{1}[0-9]{9}$)/;
	var infotelqu=document.getElementById("infotel_qu1");
	var infotelfen=document.getElementById("infotel_fen1");
	
	var infotel=document.getElementById("infotel1");
	var tels=document.getElementById("tels1");
	if(infotel.value==""){
		tels.className="hon_sp_20140520";
		tels.innerHTML="��ϵ�绰����Ϊ�գ�";
		return false;
	}else{
		if(infotelqu.value !="" && !telqu.test(infotelqu.value)){
			tels.className="hon_sp_20140520";
			tels.innerHTML="��Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(infotelfen.value !="" && !telfen.test(infotelfen.value)){
			tels.className="hon_sp_20140520";
			tels.innerHTML="�ֻ�Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(tel.test(infotel.value) == false){
		//	tels.className="error_tip";
			tels.className="hon_sp_20140520";
			tels.innerHTML="�̶��绰��ʽ��������ϸ��д��";
			return false;
		}else{
			document.getElementById("infotel_qu1").style.color="#333";
			document.getElementById("infotel_fen1").style.color="#333";
			document.getElementById("infotel1").style.color="#333";
			tels.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
		}
	}
}
function get_focus_keyfun1(){
	var infotel_qu=$("#infotel_qu1").val();
	var infotel=$("#infotel1").val();
	var infotel_fen=$("#infotel_fen1").val();
	if(infotel_qu=='���'){
		$("#infotel_qu1").val('');
	}
	if(infotel=='�绰��'){
		$("#infotel1").val('');
	}
	if(infotel_fen=='�ֻ��'){
		$("#infotel_fen1").val('');
	}
	document.getElementById("infotel_qu1").style.color="#333";
	document.getElementById("infotel1").style.color="#333";
	document.getElementById("infotel_fen1").style.color="#333";
//	$("#infotel_qu").css('color','black');
//	$("#infotel").css('color','black');
//	$("#infotel_fen").css('color','black');
}
//�ж��ǵ绰�����ֻ�

function showPhOrTel(id){
	var isDel=$('input[name="isDel"]:checked').val();
	if(isDel==1){//���ֻ�
		$("#infophone1").show();
		$("#shouji1").show();
		 
		$("#infotel_qu1").hide();
		$("#infotel1").hide();
		$("#infotel_fen1").hide();
		$("#tels1").hide();
	}else{
		$("#infophone1").hide();
		$("#shouji1").hide();
		 
		$("#infotel_qu1").show();
		$("#infotel1").show();
		$("#infotel_fen1").show();
		$("#tels1").show();
	}
}
//�ж��ǵ绰�����ֻ�

function showPhOrTel1(id){
	var isDel=$('input[name="isDel1"]:checked').val();
	if(isDel==1){//���ֻ�
		$("#infophone").show();
		$("#shouji").show();
		 
		$("#infotel_qu").hide();
		$("#infotel").hide();
		$("#infotel_fen").hide();
		$("#tels").hide();
	}else{
		$("#infophone").hide();
		$("#shouji").hide();
		 
		$("#infotel_qu").show();
		$("#infotel").show();
		$("#infotel_fen").show();
		$("#tels").show();
	}
}
//�������
function youxiang_click1(){
	var shouji=$("#zhuceemail1").val().replace(/\s/g,"");
	if(shouji=="����д����ȷ������"){
		$("#zhuceemail1").val("");
	}
	document.getElementById("zhuceemail1").style.color="#333";
}
function youxiang1(){
	var a=/^([A-Z]|[a-z]|[0-9]{1})\w+([-+.]\w+)*@\w+([-.]\w+)*\.(com|cn|net|org|org.cn|com.cn)$/;
	var youxiang=document.getElementById("youxiang1");
	if(document.getElementById("zhuceemail1").value == ""){
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="���䲻��Ϊ�գ�";
  		return false;
	}else if(!a.test(document.getElementById("zhuceemail1").value) && document.getElementById("zhuceemail1").value !="")
	{
	//	youxiang.className="error_tip";
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="�����������";
  		return false;
	}else{
	//	youxiang.className="error_tips";
		document.getElementById("zhuceemail1").style.color="#333";
		youxiang.innerHTML="<img src='../images2010/img_dlzc_20140424/duigou_im_20140428.gif' />";
	}
}
function registeryanzheng1(idx){
	window.onbeforeunload = function(event) {
		
	}  
	var gb = new Date();
	var minutes = gb.getMinutes() - dk.getMinutes();
	var seconds = gb.getSeconds() - dk.getSeconds();
	var tltime =  minutes*60 + seconds;
	document.getElementById('tltime1').value=tltime;
	var zhuceemail=document.getElementById("zhuceemail1");
	var youxiang=document.getElementById("youxiang1");
	var youyes=document.getElementById("youyes1");
	var tongyi=document.getElementById("tongyi1");
	var infounit=document.getElementById("infounit1");
	var qc=document.getElementById("qc1");
	var infoman=document.getElementById("infoman1");
	var mans=document.getElementById("mans1");
	var infotel=document.getElementById("infotel1");
	var tels=document.getElementById("tels1");
	var isDel=$('input[name="isDel"]:checked').val();
	var yxemaila=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	
//	var pass = true;
	var error=1;
	if(infounit.value=="" || infounit.value=="����д��˾���"){
		infounit.value="";
		qc.className="hon_sp_20140520";
		qc.innerHTML="��˾ȫ�Ʋ���Ϊ��";
		
		if(error==1){
			infounit.focus();
			error=2;
		}
		return false;
	}
	
	var yzunit=/([\u4e00-\u9fa5]|[a-z]|[A-Z])+/;
	if(yzunit.test(infounit.value) == false){
		if(error==1){
			infounit.focus();
			error=2;
		}
	//	qc.className="error_tip";
		qc.className="hon_sp_20140520";
		qc.innerHTML="��λȫ�Ʊ������ĸ���ߺ��֣�";
		return false;
	}
	
	if(infoman.value=="" || infoman.value=="��д��ϵ��"){
		infoman.value="";
		mans.className="hon_sp_20140520";
		mans.innerHTML="��ϵ�˲���Ϊ�գ�";
		
		if(error==1){
			infoman.focus();
			error=2;
		}
		return false;
	}
	if(isDel==2){
		if(infotel.value=="" || infotel.value=="�绰��"){
			infotel.value="";
			tels.className="hon_sp_20140520";
			tels.innerHTML="��ϵ�绰����Ϊ��";
			
			if(error==1){
				infotel.focus();
				error=2;
			}
			return false;
		}else{
			var tel =/(^[0-9]{3,4}\-[0-9]{7,8}$)|(^[0-9]{7,8}$)|(^[0-9]{11}$)|(^\([0-9]{3,4}\)[0-9]{3,8}$)|(^0{0,1}1[3,5,8]{1}[0-9]{9}$)/;
			if(!tel.test(infotel.value)){
				if(error==1){
					infotel.focus();
					error=2;
				}
				return false;
			}
		}
		var telqu=/^[0-9]{3,4}$/;
		var telfen=/^(\d{4}|\d{3}|\d{2}|\d{1})$/;
		var infotelqu=document.getElementById("infotel_qu1");
		var infotelfen=document.getElementById("infotel_fen1");
		if(infotelqu.value !="" && telqu.test(infotelqu.value) == false && infotelqu.value !="���"){
			tels.className="hon_sp_20140520";
			tels.innerHTML="��Ÿ�ʽ��������ϸ��д��";
			return false;
		}
		if(infotelfen.value !="" && telfen.test(infotelfen.value) == false && infotelfen.value !="�ֻ��"){
			tels.className="hon_sp_20140520";
			tels.innerHTML="�ֻ�Ÿ�ʽ��������ϸ��д��";
			return false;
		}
	}else{
		var infophone=document.getElementById("infophone1");
		var shouji=document.getElementById("shouji1");
//		if(infophone.value==""){
//		//	shouji.className="error_tip";
//			shouji.className="xinxi_t_p04_20130923";
//			shouji.innerHTML="�ֻ���벻��Ϊ��";
//			
//			if(error==1){
//				infophone.focus();
//				error=2;
//			}
//		//	pass = false;
//		}else 
		if(infophone.value !="" && infophone.value !="����д����ȷ���ֻ����"){
			var regmp=/^1(\d{9})(\d{1})$/;
			if(!regmp.test(infophone.value)){
				if(error==1){
					infophone.focus();
					error=2;
				}
				shouji.className="hon_sp_20140520";
				return false;
			}
		}else{
			infophone.value="";
		}
	}
	
	if(zhuceemail.value=="" || zhuceemail.value=="����д����ȷ������"){
		zhuceemail.value=""
		youxiang.className="hon_sp_20140520";
		youxiang.innerHTML="���䲻��Ϊ��";
		if(error==1){
			zhuceemail.focus();
			error=2;
		}
		return false;
	}else{
		if(!yxemaila.test(zhuceemail.value))
		{
		//	youxiang.className="error_tip";
			youxiang.className="hon_sp_20140520";
			youxiang.innerHTML="�����������";
			if(error==1){
				zhuceemail.focus();
				error=2;
			}
			return false;
		}
	}
	
	
	if(youyes.checked != true )
	{
	//	tongyi.className="error_tip";
		tongyi.className="hon_sp_20140520";
		tongyi.innerHTML="����ͬ���б�ɹ��������û�����Э��";
		return false;
	}
	$("#fastup").remove();
	$("#waitlogin1").show();
	$("#formid1").submit();
}





